package com.github.catvod.spider.merge;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Queue;

/* loaded from: classes.dex */
public class Aq implements vn {
    private Queue<UW> I;
    private volatile vn V0;
    private final String h;
    private Boolean j;
    private final boolean oC;
    private Method q;

    public Aq(String str, Queue<UW> queue, boolean z) {
        this.h = str;
        this.I = queue;
        this.oC = z;
    }

    public void I(vn vnVar) {
        this.V0 = vnVar;
    }

    public boolean V0() {
        return this.V0 instanceof WW;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return obj != null && Aq.class == obj.getClass() && this.h.equals(((Aq) obj).h);
    }

    @Override // com.github.catvod.spider.merge.vn
    public String getName() {
        return this.h;
    }

    public boolean h() {
        Boolean bool = this.j;
        if (bool != null) {
            return bool.booleanValue();
        }
        try {
            this.q = this.V0.getClass().getMethod("log", Kt.class);
            this.j = Boolean.TRUE;
        } catch (NoSuchMethodException unused) {
            this.j = Boolean.FALSE;
        }
        return this.j.booleanValue();
    }

    public int hashCode() {
        return this.h.hashCode();
    }

    public boolean j() {
        return this.V0 == null;
    }

    public void q(Kt kt) {
        if (h()) {
            try {
                this.q.invoke(this.V0, kt);
            } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException unused) {
            }
        }
    }
}
